<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
</head>
<body>
 评论管理模块
 <div class="addComment">添加评论</div>
 <form action="comment/addComment" method="post">
<textarea rows="10" cols="10" name="comment"></textarea>
<button class="submit">提交</button>
</form>
 <c:if test="commentList==null">未有任何评论</c:if>
 <c:forEach items="${commentList}" var="c">
 用户ID: ${c.userId}
 评论内容：${c.comment}
 <a href="${pageContext.request.contextPath}/comment/deleteComment?id=${c.id}">删除</a>
 <br>
 </c:forEach>
</body>
</html>